# -*- encoding: utf-8 -*-
'''
@File    :   4.py
@Time    :   2022/10/25 20:52:09
@Author  :   Cms 
@Version :   1.0
@Contact :   2267000140@qq.com
@WebSite    :   www.baidu.com
'''

# here put the import lib


# 4  判断用户输入的年份是否为闰年


def is_leap_year(year):
    if (year % 4 == 0 and year % 100 != 0):
        return True
    if (year % 400 == 0):
        return True
    return False


year = input("Enter a year:")
if (is_leap_year(int(year))):
    print("输入的年份是闰年！")
else:
    print("输入的年份不是闰年！")
